using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;

namespace XnaUtilitySolution
{
    public class ShipObject :  XnaUtility.GameObjects.Base3DGameObject
    {
        private float zDeath;

        public float ZDeath
        {
            get { return zDeath; }
            set { zDeath = value; }
        }
	

        public ShipObject(Game game, string modelName)
            : base(game, modelName)
        {
        }

        public override void Update(GameTime gameTime)
        {
            if (location.Z > zDeath) alive = false;            

            base.Update(gameTime);
        }
    }
}
